<template>
  <div>
    <img alt="Vue logo" src="@/assets/logo.png">
    <h1>这是首页</h1>
    <el-button type="success" @click="skipComp">跳转组件</el-button>
    <el-button type="success" @click="skipHello">跳转Hello</el-button>
    <el-button type="success" @click="jenkinsTest">Jenkins测试</el-button>
    <el-divider></el-divider>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'IndexVue',
  data() {
    return {
      
    };
  },

  mounted() {
    
  },

  methods: {
    skipComp(){
      this.$router.push('/planetTest',()=>{}, ()=>{})
    },
    skipHello(){
      this.$router.push({path:'/helloWorld',query:{msg:'Welcome to Your Vue.js App'}},()=>{}, ()=>{})
    },
    jenkinsTest(){
        this.$message.success('jenkins部署成功')
    }
  },
};
</script>

<style lang="scss" scoped>

</style>